package com.wb.tool;

import java.io.Serializable;

public class DictRecord implements Serializable , Comparable<DictRecord>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public String tableName;
	public int orderIndex;
	public String linkTo;
	public String dispText;
	public int dispWidth;
	public String dispFormat;
	public boolean noList;
	public boolean noEdit;
	public boolean autoWrap;
	public boolean noBlank;
	public boolean readOnly;
	public String keyName;
	public int fieldSize;
	public int decimalPrecision;
	public String validator;
	public String renderer;
	public String align;
	public String getLinkTo() {
		return linkTo;
	}
	public void setLinkTo(String linkTo) {
		this.linkTo = linkTo;
	}
	public String getDispText() {
		return dispText;
	}
	public void setDispText(String dispText) {
		this.dispText = dispText;
	}
	public int getDispWidth() {
		return dispWidth;
	}
	public void setDispWidth(int dispWidth) {
		this.dispWidth = dispWidth;
	}
	public String getDispFormat() {
		return dispFormat;
	}
	public void setDispFormat(String dispFormat) {
		this.dispFormat = dispFormat;
	}
	public boolean isNoList() {
		return noList;
	}
	public void setNoList(boolean noList) {
		this.noList = noList;
	}
	public boolean isNoEdit() {
		return noEdit;
	}
	public void setNoEdit(boolean noEdit) {
		this.noEdit = noEdit;
	}
	public boolean isAutoWrap() {
		return autoWrap;
	}
	public void setAutoWrap(boolean autoWrap) {
		this.autoWrap = autoWrap;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public boolean isNoBlank() {
		return noBlank;
	}
	public void setNoBlank(boolean noBlank) {
		this.noBlank = noBlank;
	}
	public boolean isReadOnly() {
		return readOnly;
	}
	public void setReadOnly(boolean readOnly) {
		this.readOnly = readOnly;
	}
	public String getKeyName() {
		return keyName;
	}
	public void setKeyName(String keyName) {
		this.keyName = keyName;
	}
	public int getFieldSize() {
		return fieldSize;
	}
	public void setFieldSize(int fieldSize) {
		this.fieldSize = fieldSize;
	}
	public int getDecimalPrecision() {
		return decimalPrecision;
	}
	public void setDecimalPrecision(int decimalPrecision) {
		this.decimalPrecision = decimalPrecision;
	}
	public String getValidator() {
		return validator;
	}
	public void setValidator(String validator) {
		this.validator = validator;
	}
	public String getRenderer() {
		return renderer;
	}
	public void setRenderer(String renderer) {
		this.renderer = renderer;
	}
	public String getAlign() {
		return align;
	}
	public void setAlign(String align) {
		this.align = align;
	}
	public int getOrderIndex() {
		return orderIndex;
	}
	public void setOrderIndex(int orderIndex) {
		this.orderIndex = orderIndex;
	}
	@Override
	public int compareTo(DictRecord o) {
		return o.getTableName().hashCode() + o.getOrderIndex();
	}
}